home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / COM / ProTERM Mac1.2a.sit / ProTERM Mac1.2a / Macros / Read Me Macros < prev    next >
Text File  |  1996-07-24  |  7KB  |  88 lines

  1. ProTERM Macros Folder
  2.  
  3. ** Introduction **
  4.  
  5. The macros folder has been updated to include several new files not mentioned in the ProTERM manual. The structure of the folder has changed as well. Instead of a single "Resident Macros" file as mentioned in the manual, the resident macros have been partitioned into several different files.
  6.  
  7. Since the macros are a very dynamic aspect of ProTERM, much of the macro documentation is now included in electronic form as part of ProTERM. Choose DIRC Reference from the Help sub-menu in order to view the macro documentation.
  8.  
  9. ** Partitioned Resident Macros **
  10.  
  11. The Resident Macros file has been divided into several different files. The main file is still called Resident Macros and contains an assortment of startup, library and keyboard macros. The Resident User file contains additional macros and is designated as a "user modifiable" file. In prior versions, if an updated version of Resident Macros was released, it could be difficult to find all your changes to the old version and move them to the new one. The Resident User file is not updated over time like Resident Macros. Therefore, changes made to Resident User are not in danger to being replaced by a new version of the file.
  12.  
  13. The new Resident Macros format allows you to create your own personal resident macro files. The Extras folder contains a file called Resident User Empty. You can copy this file to the Macros folder and rename it so that it starts out as "Resident User " (the remainder of the filename can be whatever you want). You can customize the resulting file in the same way you would the Resident User 1 file. Since the file is self-contained, you can share it with other users who need only place it in their own Macros folder to make use of it.
  14.  
  15. * Startup Macro *
  16.  
  17. Startup Macro is the first macro file which is executed by ProTERM during appication startup. You should not change the preference which makes Startup Macro the first macro executed (unless you have a specific reason to do so). When the Startup Macro file executes, it executes all other files in the Macros folder which start with the prefix "Startup" or "Resident". Files prefixed with "Startup" are executed before those prefixed with "Resident". In this way, you add and remove macros by adding and removing files to the Macros folder.
  18.  
  19. * Startup Rebuild *
  20.  
  21. The Startup Rebuild file adds a command called "Rebuild Menu" to the Connect menu. This command is useful for bringing the Connect menu up to date if you use the Finder to change the contents of the Services folder while ProTERM is running. If you move the Startup Rebuild file out of the Macros folder, then the Rebuild Menu item will disapear from the Connect menu the next time you startup ProTERM.
  22.  
  23. * Resident Library *
  24.  
  25. The Resident Libray file is a collection of useful macros which automatically get loaded and are available for use by other macros. Updated versions of this file may be distributed periodically, so you should avoid making changes to it. You can add your own library routines to the Resident User file.
  26.  
  27. * Resident Macros *
  28.  
  29. The Resident Macros file contains quite a bit of "macro glue" to make ProTERM operate smoothly. New DIRC functions are often implemented as macro code within this file. You should avoid changing this file since updated versions may be distributed periodically.
  30.  
  31. * Resident User *
  32.  
  33. The Resident User file is a file which is meant to personalized. Unlike Resident Library and Resident Macros, this file is rarely (if ever) updated. As a result, you can make changes within this file, and those changes will still work if you get an updated version of the Resident Macros or Resident Library file.
  34.  
  35. ** AutoTime **
  36.  
  37. The AutoTime macro file is both an example of a stand-along macro as well as a useful utility. The AutoTime macro uses your modem to call a time server (a computer connected to a very precise clock) and adjusts your system clock. To use AutoTime, choose the Exec command from the File menu, select AutoTime within the Macros folder and follow the instructions.
  38.  
  39. For AutoTime to work correctly, you must use the Map control panel to set your Macintosh location and time zone. To do this, choose Control Panels from the Apple menu, double-click on the Map control panel, set your location on the map, and click the Set button. This allows ProTERM to determine the time zone difference between the location of your Macintosh and GMT (Greenwich mean time).
  40.  
  41. NOTE: Some modems have difficulty connecting to the Naval Observatory time server due to its use of 1200 bps modems (very old). If you find you have trouble connecting to one of the time servers, you should try using the other.
  42.  
  43. ** Contributed **
  44.  
  45. The contributed folder contains a collection of macros and ProTERM related material which has been contributed by ProTERM users. These macros provide excellent examples for those intereseted in developing their own macro applications. Much of the contributed macro code includes documentation. Questions regarding the contributed code must be sent to the code authors, not to InTrec Software. Though there are no known problems with any of the items in the Contributed folder, USE AT YOUR OWN RISK.
  46.  
  47. ** Macro Changes **
  48.  
  49. The DIRC Documentation provides a systematic overview of all the functions available for use. In addition to this, the following notes detail some other import macro issues.
  50.  
  51. * Keyboard Macro Clarifications *
  52.  
  53. When choosing keyboard combinations to use for Keyboard Macros, it is best to avoid using the keys referred to as the メdead-keysモ as part of your keyboard macros. Dead-keys require two separate keystrokes in order to generate a single character. The normal dead-keys which should be avoided are: OPTION+E, OPTION+U, OPTION+I, OPTION+N, and OPTION+`. 
  54.  
  55. * Special Folder Aliases *
  56.  
  57. ProTERM defines three special メaliasesモ which can be used within pathnames in order to aid in macro development. When these aliases are used within a pathname, they give a symbolic representation to folders which ProTERM considers significant. These メaliasesモ work under both System 7 and System 6. The aliases are:
  58.  
  59. .APPL:    The folder containing the ProTERM application program.
  60. .SYST:    The folder containing the active system software.
  61. .PREF:    The folder containing the ProTERM preference files.
  62.  
  63. Examples:
  64.  
  65. IF (IS_FILE(".APPL:Test File")) { ... }
  66. EXTERN(".PREF:My-Macros", main());
  67.  
  68. * Selecting Files from a File Dialog *
  69.  
  70. The UI_SET() function can actually be used to select files in a file dialog window. There are several メfakeモ item names which are used to identify what is being selected.
  71.  
  72. file: Selects a file or its to a list of files.
  73. path: Changes the folder to that specified.
  74. type: Changes the file type pop-up menu.
  75.  
  76. Examples:
  77.  
  78. UI_SET("file", ".APPL:My-file");
  79. UI_SET("path", ".PREF:");
  80. UI_SET("file", "HD20:Files:File-List");
  81. UI_SET("type", "All Files");
  82.  
  83. Last Updated 06/10/95
  84. ゥ1995 InTrec Software, Inc.
  85.